{config_load file="includes/site.conf" section="setup"}
{include file="templates/header.tpl" title=$tittle}
{include file="templates/navbar.tpl"}
{include file="templates/left.tpl" menu="main"}
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						{literal}
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
						{/literal}
						<ul class="breadcrumb">
							<i class="icon-home home-icon"></i>
							<li class="active">Bảng điều khiển								
								<!--a class="active">Bảng điều khiển</a-->
							</li>
							<!--li class="active">Dashboard</li-->
						</ul>
					</div>

					<div class="page-content">
						<div class="page-header">
							<h1>
								Bảng điều khiển
								<small>
									<i class="icon-double-angle-right"></i>
									Tổng quan
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<div class="row">
									<div class="col-sm-12">
										<div class="widget-box transparent">
											<div class="widget-header widget-header-flat">
												<h4 class="lighter">
													<i class="icon-star orange"></i>
													Các đơn hàng gần đây
												</h4>

												<div class="widget-toolbar">
													<a href="#" data-action="collapse">
														<i class="icon-chevron-up"></i>
													</a>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main no-padding">
													<table class="table table-bordered table-striped">
														<thead class="thin-border-bottom">
															<tr>
																<th width="50%">
																	<i class="icon-caret-right blue"></i>
																	Tên công ty
																</th>
																<th width="10%">
																	<i class="icon-caret-right blue"></i>
																	Mã số thuế
																</th>

																<th width="20%">
																	<i class="icon-caret-right blue"></i>
																	Số hợp đồng
																</th>

																<th width="10%">
																	<i class="icon-caret-right blue"></i>
																	Tổng tiền
																</th>

																<th width="10%">
																	<i class="icon-caret-right blue"></i>
																	Trạng thái
																</th>
															</tr>
														</thead>

														<tbody>
															{section name=last5contract loop=$last5contract}
															<tr>
																<td>{$last5contract[last5contract][0]}</td>
																<td>{$last5contract[last5contract][1]}</td>
																<td>{$last5contract[last5contract][2]}</td>
																<td><b class="green">{$last5contract[last5contract][3]} đ</b></td>
																<td>
																	<span class="{$last5contract[last5contract][5]}">{$last5contract[last5contract][4]}</span>
																</td>
															</tr>
															{/section}
														</tbody>
													</table>
												</div><!-- /widget-main -->
											</div><!-- /widget-body -->
										</div><!-- /widget-box -->
									</div>

								</div>

								<div class="hr hr32 hr-dotted"></div>

								<div class="row">
									<div class="col-sm-12">
										<div class="widget-box transparent" id="recent-box">
											<div class="widget-header">
												<h4 class="lighter smaller">
													<i class="icon-rss orange"></i>
													HOẠT ĐỘNG
												</h4>

												<div class="widget-toolbar no-border">
													<ul class="nav nav-tabs" id="recent-tab">
														<li>
															<a data-toggle="tab" href="#task-tab">Việc cần làm</a>
														</li>

														<li class="active">
															<a data-toggle="tab" href="#calendar-tab">Lịch làm việc</a>
														</li>

													</ul>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main padding-4">
													<div class="tab-content padding-8 overflow-visible">
														<div id="task-tab" class="tab-pane">
															<h4 class="smaller lighter green">
																<i class="icon-list"></i>
																Danh sách việc cần làm
															</h4>

															<ul id="tasks" class="item-list ui-sortable">
																{if $is_event_today > 0}
																{section name=event_today loop=$event_today}
																<li id="{$event_today[event_today][0]}" class="item-red clearfix {if $event_today[event_today][2] == 1}selected{/if}">
																	<label class="inline">
																		<span class="lbl"> {$event_today[event_today][1]}</span>
																	</label>

																	<div class="pull-right action-buttons">
																		{if $event_today[event_today][2] != 1}
																		<a id="done_{$event_today[event_today][0]}" class="green" data-rel="tooltip" title="" data-original-title="Đánh dấu là đã hoàn thành">
																			<i class="icon-flag bigger-130"></i>
																		</a>
																		{/if}
																		<span class="vbar"></span>
																		<a id="del_{$event_today[event_today][0]}" class="red" data-rel="tooltip" title="" data-original-title="Xóa">
																			<i class="icon-trash bigger-130"></i>
																		</a>
																	</div>
																</li>
																{/section}
																{else}
																<li class="item-red clearfix">
																	<label class="inline">
																		<span class="lbl"> Chưa có công việc cần làm trong ngày hôm nay!</span>
																	</label>
																</li>
																{/if}
															</ul>
														</div>

														<div id="calendar-tab" class="tab-pane active">
															<h4 class="smaller lighter green">
																<i class="icon-list"></i>
																Lịch làm việc
															</h4>
															<br>
															<div class="row">
																<div class="col-sm-9">
																	<div class="space"></div>
																	<div id="calendar" class="fc fc-ltr">
																	</div>
																</div>

																<div class="col-sm-3">
																	<div class="widget-box transparent">
																		<div class="widget-header">
																			<h4>Chọn công việc</h4>
																		</div>

																		<div class="widget-body">
																			<div class="widget-main no-padding">
																				<div id="external-events">
																					<div class="external-event label-grey ui-draggable" data-class="label-grey" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 1
																					</div>

																					<div class="external-event label-success ui-draggable" data-class="label-success" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 2
																					</div>

																					<div class="external-event label-danger ui-draggable" data-class="label-danger" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 3
																					</div>

																					<div class="external-event label-purple ui-draggable" data-class="label-purple" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 4
																					</div>

																					<div class="external-event label-yellow ui-draggable" data-class="label-yellow" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 5
																					</div>

																					<div class="external-event label-pink ui-draggable" data-class="label-pink" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 6
																					</div>

																					<div class="external-event label-info ui-draggable" data-class="label-info" style="position: relative;">
																						<i class="icon-move"></i>
																						Công việc 7
																					</div>

																					<label>
																						<input type="checkbox" class="ace ace-checkbox" id="drop-remove">
																						<span class="lbl"> xóa đi sau khi chọn</span>
																					</label>
																				</div>
																			</div>
																		</div>
																	</div>
																</div>

															</div>

														</div><!-- member-tab -->
													</div>
												</div><!-- /widget-main -->
											</div><!-- /widget-body -->
										</div><!-- /widget-box -->
									</div><!-- /span -->

								</div><!-- /row -->

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
{include file="templates/script.tpl" menu="main"}
{include file="templates/footer.tpl"}